﻿using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;

namespace Himp.TaskScheduling
{
    public class RedisConfigService : ITransientDependency
    {
        //private readonly IConnectionMultiplexer _redis;

        //public RedisConfigService(IConnectionMultiplexer redis)
        //{
        //    _redis = redis;
        //}

        //public async Task SetValueAsync(string key, string value)
        //{
        //    var db = _redis.GetDatabase();
        //    await db.StringSetAsync(key, value);
        //}

        //public async Task<string> GetValueAsync(string key)
        //{
        //    var db = _redis.GetDatabase();
        //    return await db.StringGetAsync(key);
        //}
    }
}
